package com.xiaoh.dormitoryrepairreportbackend.model.dto.workorder;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 工单评价请求
 */
@Data
@Schema(description = "工单评价请求")
public class WorkOrderReviewRequest implements Serializable {

    @Schema(description = "工单ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "工单ID不能为空")
    private Long workOrderId;

    @Schema(description = "服务评分(1-5星)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "评分不能为空")
    @Min(value = 1, message = "评分不能小于1")
    @Max(value = 5, message = "评分不能大于5")
    private Integer rating;

    @Schema(description = "服务评价")
    private String reviewComment;

    private static final long serialVersionUID = 1L;
}
